package cn.youqu.happy.module.youqu.controller.app.userAssess.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.*;
import java.util.List;

@ApiModel("用户 APP - 用户发表评价 Request VO")
@Data
@ToString(callSuper = true)
public class AppUserAssessPublishReqVO {

    @ApiModelProperty(value = "评价星星数")
    @NotNull(message = "评价星星数 不能为空")
    @Min(value = 0, message = "最少零星")
    @Max(value = 10, message = "最多10星")
    private Integer star;

    @ApiModelProperty(value = "评价内容")
    @NotEmpty(message = "评价内容 不能为空")
    private String comment;

    @ApiModelProperty(value = "图片数组")
    @Size(max = 2, message = "图片最多两张")
    private List<String> imgList;

    @ApiModelProperty(value = "被评价人回复的id")
    @NotNull(message = "评价人 不能为空")
    private Long targetId;

    @ApiModelProperty(value = "活动id")
    @NotNull(message = "活动id 不能为空")
    private Integer activityId;
}
